<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-order_no" class="control-label col-xs-12 col-sm-2">{:__('Order_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_no" data-rule="required" class="form-control" name="row[order_no]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-user_id" class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-order_status" class="control-label col-xs-12 col-sm-2">{:__('Order_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="orderStatusList" item="vo"}
            <label for="row[order_status]-{$key}"><input id="row[order_status]-{$key}" name="row[order_status]" type="radio" value="{$key}" {in name="key" value="1) unsigne"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-shipping_status" class="control-label col-xs-12 col-sm-2">{:__('Shipping_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="shippingStatusList" item="vo"}
            <label for="row[shipping_status]-{$key}"><input id="row[shipping_status]-{$key}" name="row[shipping_status]" type="radio" value="{$key}" {in name="key" value="1) unsigne"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-pay_status" class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="payStatusList" item="vo"}
            <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="1) unsigne"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-shipping_code" class="control-label col-xs-12 col-sm-2">{:__('Shipping_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_code" data-rule="required" class="form-control" name="row[shipping_code]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-shipping_id" class="control-label col-xs-12 col-sm-2">{:__('Shipping_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_id" data-rule="required" data-source="shipping/index" class="form-control selectpage" name="row[shipping_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-pay_code" class="control-label col-xs-12 col-sm-2">{:__('Pay_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_code" data-rule="required" class="form-control" name="row[pay_code]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-pay_name" class="control-label col-xs-12 col-sm-2">{:__('Pay_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_name" data-rule="required" class="form-control" name="row[pay_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-invoice_title" class="control-label col-xs-12 col-sm-2">{:__('Invoice_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-invoice_title" class="form-control" name="row[invoice_title]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-goods_amount" class="control-label col-xs-12 col-sm-2">{:__('Goods_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_amount" data-rule="required" class="form-control" step="0.01" name="row[goods_amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-freight" class="control-label col-xs-12 col-sm-2">{:__('Freight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-freight" data-rule="required" class="form-control" step="0.01" name="row[freight]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-coupon_price" class="control-label col-xs-12 col-sm-2">{:__('Coupon_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_price" class="form-control" step="0.01" name="row[coupon_price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-integral" class="control-label col-xs-12 col-sm-2">{:__('Integral')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-integral" data-rule="required" class="form-control" name="row[integral]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-integral_money" class="control-label col-xs-12 col-sm-2">{:__('Integral_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-integral_money" data-rule="required" class="form-control" step="0.01" name="row[integral_money]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-order_amount" class="control-label col-xs-12 col-sm-2">{:__('Order_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_amount" data-rule="required" class="form-control" step="0.01" name="row[order_amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-total_amount" class="control-label col-xs-12 col-sm-2">{:__('Total_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_amount" class="form-control" step="0.01" name="row[total_amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-create_time" class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-shipping_time" class="control-label col-xs-12 col-sm-2">{:__('Shipping_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[shipping_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-confirm_time" class="control-label col-xs-12 col-sm-2">{:__('Confirm_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-confirm_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[confirm_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-pay_time" class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-transaction_id" class="control-label col-xs-12 col-sm-2">{:__('Transaction_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-transaction_id" data-rule="required" data-source="transaction/index" class="form-control selectpage" name="row[transaction_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-order_prom_type" class="control-label col-xs-12 col-sm-2">{:__('Order_prom_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-order_prom_type" class="form-control selectpicker" name="row[order_prom_type]">
                {foreach name="orderPromTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-order_prom_id" class="control-label col-xs-12 col-sm-2">{:__('Order_prom_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_prom_id" data-rule="required" data-source="order/prom/index" class="form-control selectpage" name="row[order_prom_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-order_prom_amount" class="control-label col-xs-12 col-sm-2">{:__('Order_prom_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_prom_amount" data-rule="required" class="form-control" step="0.01" name="row[order_prom_amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-discount" class="control-label col-xs-12 col-sm-2">{:__('Discount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount" data-rule="required" class="form-control" step="0.01" name="row[discount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-message" class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-message" data-rule="required" class="form-control" name="row[message]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-admin_message" class="control-label col-xs-12 col-sm-2">{:__('Admin_message')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_message" class="form-control" name="row[admin_message]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-is_distribut" class="control-label col-xs-12 col-sm-2">{:__('Is_distribut')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_distribut" class="form-control selectpicker" name="row[is_distribut]">
                {foreach name="isDistributList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-deleted" class="control-label col-xs-12 col-sm-2">{:__('Deleted')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-deleted" data-rule="required" class="form-control selectpicker" name="row[deleted]">
                {foreach name="deletedList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-business_id" class="control-label col-xs-12 col-sm-2">{:__('Business_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-business_id" data-rule="required" data-source="business/index" class="form-control selectpage" name="row[business_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-update_time" class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-update_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
